package datatypes.tv;

public class tvStarringRole extends tvRole {

	private String series;
	private String seasons;

	public tvStarringRole(){
		super();
	}
	
	public tvStarringRole(String name, String id, String actor,
			String character, String series, String seasons) {
		super(name, id, actor, character);
		this.series = series;
		this.seasons = seasons;
	}
	
	public void init(tvStarringRole sr){
		this.name = sr.getName();
		this.id = sr.getId();
		this.actor = sr.getActor();
		this.character = sr.getCharacter();
		this.series = sr.getSeries();
		this.seasons = sr.getSeasons();
	}

	private String getSeasons() {
		return this.seasons;
	}

	private String getSeries() {
		return this.series;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();

		if (name != null && name.length() > 0) {
			sb.append("name: " + name + "\n");
		}

		if (id != null && id.length() > 0) {
			sb.append("id: " + id + "\n");
		}

		if (actor != null && actor.length() > 0 ) {
			sb.append("actor: " + actor + "\n");
		}

		if (character != null && character.length() > 0) {
			sb.append("charachter: " + character + "\n");
		}

		if (series != null && series.length() > 0)
			sb.append("series: " + series + "\n");

		if (seasons != null && seasons.length() > 0)
			sb.append("seasons: " + seasons + "\n");

		return sb.toString();
	}

	public String getActor() {
		return actor;
	}

	public void setActor(String actor) {
		this.actor = actor;
	}

}
